<?php 
	session_start();
	error_reporting(1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include'../widgets/js_css.php'?>
</head>
  
	<body id="login">
		
		<div id="login-wrapper" class="png_bg">
			<div id="login-top">
			
				<h1>Admin Hiệu Sách</h1>
				<!-- Logo (221px width) -->
				<img id="logo" />
			</div> <!-- End #logn-top -->
			
			<div id="login-content">
            <?php
				function thong_bao() 
				{
					if ($_SESSION['msg'] != '') 
					{
						echo '<div class="notification '.$_SESSION['type_msg'].' png_bg"><a href="#" class="close"><img src="../hinh_anh/cross_grey_small.png" title="Close this notification" alt="close" /></a><div>'.$_SESSION['msg'].'</div></div>';
						$_SESSION['msg'] = '';				
					}
				}
				thong_bao();
			?>
				<form action="login_sm.php" method="post">
					<p>
						<label>Tên đăng nhập</label>
						<input name="ten_dang_nhap" class="text-input" value="<?php echo $_COOKIE['ten_dang_nhap_ghi_nho'];?>" type="text" />
					</p>
					<div class="clear"></div>
					<p>
						<label>Mật khẩu</label>
						<input name="mat_khau" class="text-input" value="<?php echo base64_decode(base64_decode(base64_decode($_COOKIE['mat_khau_ghi_nho'])));?>" type="password" />
					</p>
					<div class="clear"></div>
					<p id="remember-password">
						<input name="ghi_nho" type="checkbox" />Ghi nhớ mật khẩu
					</p>
					<div class="clear"></div>
					<p>
						<input class="button" type="submit" value="Đăng nhập" />
					</p>
					
				</form>
			</div> <!-- End #login-content -->
			
		</div> <!-- End #login-wrapper -->
  </body>
</html>
